package pe.com.bn.sach.domain;

/**
 * Bnchf67DireccionPersId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf67DireccionPersId implements java.io.Serializable {

	// Fields

	private Bnchf01Persona bnchf01Persona;
	private Long f67IdDirecc;

	// Constructors

	/** default constructor */
	public Bnchf67DireccionPersId() {
		 bnchf01Persona=new Bnchf01Persona();
	}

	/** full constructor */
	public Bnchf67DireccionPersId(Bnchf01Persona bnchf01Persona,
			Long f67IdDirecc) {
		this.bnchf01Persona = bnchf01Persona;
		this.f67IdDirecc = f67IdDirecc;
	}

	// Property accessors

	public Bnchf01Persona getBnchf01Persona() {
		return this.bnchf01Persona;
	}

	public void setBnchf01Persona(Bnchf01Persona bnchf01Persona) {
		this.bnchf01Persona = bnchf01Persona;
	}

	public Long getF67IdDirecc() {
		return this.f67IdDirecc;
	}

	public void setF67IdDirecc(Long f67IdDirecc) {
		this.f67IdDirecc = f67IdDirecc;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf67DireccionPersId))
			return false;
		Bnchf67DireccionPersId castOther = (Bnchf67DireccionPersId) other;

		return ((this.getBnchf01Persona() == castOther.getBnchf01Persona()) || (this
				.getBnchf01Persona() != null
				&& castOther.getBnchf01Persona() != null && this
				.getBnchf01Persona().equals(castOther.getBnchf01Persona())))
				&& ((this.getF67IdDirecc() == castOther.getF67IdDirecc()) || (this
						.getF67IdDirecc() != null
						&& castOther.getF67IdDirecc() != null && this
						.getF67IdDirecc().equals(castOther.getF67IdDirecc())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf01Persona() == null ? 0 : this.getBnchf01Persona()
						.hashCode());
		result = 37
				* result
				+ (getF67IdDirecc() == null ? 0 : this.getF67IdDirecc()
						.hashCode());
		return result;
	}

}